<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title>${site_title }--编辑用户功能树节点</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="${site_keywords }">
<meta http-equiv="description" content="${site_description }">
<c:import url="/res/resLoader_admin.jsp"></c:import>
<script type="text/javascript" src="manage/user/userFunctionTree.js"></script>
<link rel='stylesheet' type='text/css' href='<%=basePath %>res/css/tree.css'/>
</head>
<body>
	<form action="" method="post">
		<table class="form_table">
			<tbody>
				<tr>
					<td class="label">节点ID：</td>
					<td>
						<c:choose>
							<c:when test="${typeFlag eq 'add' }">
								<input type="text" name="id" value='<c:out value="${tree.id }"/>' size="30">
							</c:when>
							<c:otherwise>
								<input type="hidden" name="id" value='<c:out value="${tree.id }"/>'>
								<c:out value="${tree.id }"></c:out>
							</c:otherwise>
						</c:choose>
					</td>
				</tr>
				<tr>
					<td class="label">节点名称：</td>
					<td>
						<input type="text" name="name" value='<c:out value="${tree.name }"/>' size="30">
					</td>
				</tr>
				<tr>
					<td class="label">节点链接：</td>
					<td>
						<input type="text" name="url" value='<c:out value="${tree.url }"/>' size="30">
					</td>
				</tr>
				<tr>
					<td class="label">节点名称备注：</td>
					<td>
						<input type="text" name="remark" value='<c:out value="${tree.remark }"/>' size="30">
					</td>
				</tr>
				<tr>
					<td class="label">节点名是否显示：</td>
					<td>
						<select name="visible">
							<option value='' <c:if test="${'' eq tree.visible }">selected</c:if>>&nbsp;&nbsp;</option>
							<option value='1' <c:if test="${1 eq tree.visible }">selected</c:if>>显示</option>
							<option value='0' <c:if test="${0 eq tree.visible }">selected</c:if>>不显示</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="label">节点默认是否展开：</td>
					<td>
						<select name="defaultState">
							<option value='1' <c:if test="${1 eq tree.defaultState }">selected</c:if>>展开</option>
							<option value='0' <c:if test="${1 ne tree.defaultState }">selected</c:if>>不展开</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="label">节点显示顺序：</td>
					<td>
						<input type="text" name="viewIndex" value='<c:out value="${tree.viewIndex }"/>' size="30">
					</td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="parentId" value="${tree.parentId }">
	</form>
</body>
</html>
